package net.getbang.controller.upload;


import java.util.List;

import org.jboss.logging.Param;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;


@RestController
@RequestMapping("image")
public class UploadController {

	
	
	/**
	 * 
	 * @param imageFiles
	 * @return
	 */
	@PostMapping(value="/uploadbase64")
	public Object uploadBase64(@RequestBody String imageFiles) {
		
		
		
	    String imagebase ="{\"imageFiles\":[{\"file\":{\"src\":\"\"}}]}\r\n" + 
	    		"";
		//List<Image> image = JSON.p
		
		System.out.println(JSON.toJSON(imageFiles));
		
		return imagebase;
	}
	
	
}
